<?php if(!class_exists("View", false)) exit("no direct access allowed");?><p></p>

<p>
	这里是多维数据的演示哦！
	<ul>
		<?php $_foreach_v_counter = 0; $_foreach_v_total = count($data);?><?php foreach( $data as $k => $v ) : ?><?php $_foreach_v_index = $_foreach_v_counter;$_foreach_v_iteration = $_foreach_v_counter + 1;$_foreach_v_first = ($_foreach_v_counter == 0);$_foreach_v_last = ($_foreach_v_counter == $_foreach_v_total);$_foreach_v_counter++;?>
			<?php if (is_array($v)) : ?> <?php /* *如果是多维的**/?>
				<ol>
					<?php $_foreach_vv_counter = 0; $_foreach_vv_total = count($v);?><?php foreach( $v as $vv ) : ?><?php $_foreach_vv_index = $_foreach_vv_counter;$_foreach_vv_iteration = $_foreach_vv_counter + 1;$_foreach_vv_first = ($_foreach_vv_counter == 0);$_foreach_vv_last = ($_foreach_vv_counter == $_foreach_vv_total);$_foreach_vv_counter++;?>
						<li><?php echo htmlspecialchars($vv, ENT_QUOTES, "UTF-8"); ?></li>
					<?php endforeach; ?>
				</ol>
				
			<?php else : ?>
				<li><?php echo htmlspecialchars($k, ENT_QUOTES, "UTF-8"); ?>：<?php echo htmlspecialchars($v, ENT_QUOTES, "UTF-8"); ?></li>
		
			<?php endif; ?>
		<?php endforeach; ?>
	</ul>
</p>
<p>
	<a href="<?php echo url(array('c'=>'default', 'a'=>'index', ));?>">返回到Default/index</a>
</p>